<template>
  <div class="page-container">
    <div v-if="$slots.header" class="page-container-header">
      <slot name="header"></slot>
    </div>
    <div class="page-container-content">
      <slot></slot>
    </div>
  </div>
</template>

<script lang="ts">
export default {
  name: 'PageContainer',
  props: {
  },
}
</script>

<style lang="scss" scoped>
.page-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  .page-container-header {
    padding: 0 16px;
    background: #fff;
  }
  .page-container-content {
    flex: 1;
    padding: 16px;
    // background: #eee;
    overflow: auto;
    display: flex;
    flex-direction: column;
  }
}
</style>